package com.jf3q.front.controller;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.jf3q.common.domain.EduSubject;
import com.jf3q.common.domain.PayLog;
import com.jf3q.common.vo.ResultVo;
import com.jf3q.common.service.PayLogService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Tag(name = "订单")
@RestController
@RequestMapping("/payLog")
public class PayLogController {

    @Autowired
    PayLogService payLogService;
    @GetMapping("/getPayLogList/{uid}")
    @Operation(summary = "查询个人订单")
    //order是顺序，默认1顺 2逆序
    public ResultVo getPayLogList(@PathVariable String uid,String tradeState,@RequestParam(defaultValue = "1") Integer order){

        LambdaQueryWrapper<PayLog> queryWrapper = new LambdaQueryWrapper<>();
//        queryWrapper.eq()
        payLogService.list(queryWrapper);
        return null;
    }
}
